<!-- 公司概况 -->
<template>
  <div>
    <table class="table w1021">
      <tr class="tableTrCompany">
        <td class="tableName gray">公司全称</td>
        <td class="tableTxt orange" colspan="5">{{data.cName|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">英文名称</td>
        <td class="tableTxt orange" colspan="5">{{data.eName|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">工商登记号</td>
        <td class="tableTxt orange" colspan="5">{{data.regiNo|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">注册资本（万元）</td>
        <td class="tableTxt orange">{{data.regiCap|filterVal("number")}}</td>
        <td class="tableName gray w170">公司网址</td>
        <td class="tableTxt orange">{{data.webSite|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">法定代表人</td>
        <td class="tableTxt orange">{{data.legPerson|filterVal}}</td>
        <td class="tableName gray w170">联系电话</td>
        <td class="tableTxt orange">{{data.tel|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">实际控制人</td>
        <td class="tableTxt orange">{{data.ctrlName|filterVal}}</td>
        <td class="tableName gray w170">电子邮箱</td>
        <td class="tableTxt orange">{{data.email|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">注册地址</td>
        <td class="tableTxt orange" colspan="5">{{data.regiAddr|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">办公地址</td>
        <td class="tableTxt orange" colspan="5">{{data.officeAddr|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">主营业务</td>
        <td class="tableTxt orange lineNormal" colspan="5">{{data.priBiz|filterVal}}</td>
      </tr>
      <tr class="tableTrCompany">
        <td class="tableName gray">主营产品</td>
        <td class="tableTxt orange lineNormal" colspan="5">{{data.priPrd|filterVal}}</td>
      </tr>
    </table>
  </div>
</template>

<script>
import { number } from "../../script/api";
export default {
  data() {
    return {};
  },
  props: ["data"],
  filters: {
    filterVal(ops, num) {
      if (num == "yuan") {
        return ops || ops == 0 ? ops : "--";
      }
      if (typeof ops == "number") {
        return number(ops, num);
      }
      return ops ? ops : "--";
    }
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>